﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Efcore.MultiTenant.DbProvider
{
    internal interface IDbProvider<TContext> : IDbProvider where TContext : BaseDbContext
    {
    }

    internal interface IDbProvider
    {
        /// <summary>
        /// 各数据库配置
        /// </summary>
        /// <param name="optionsBuilder">Microsoft.EntityFrameworkCore.DbContextOptionsBuilder</param>
        void OnConfiguring(DbContextOptionsBuilder optionsBuilder);

        /// <summary>
        /// 实体配置
        /// </summary>
        /// <param name="modelBuilder">Microsoft.EntityFrameworkCore.ModelBuilder</param>
        void OnModelCreating(ModelBuilder modelBuilder);
    }
}
